package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.PaymentQiyeDAO;
import com.pojo.PaymentQiye;
import com.vo.PaymentQiyeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: T-bao
 * @Date: 2021-4-13 18:07
 * @Description:
 */
@Service
public class PaymentQiyeService extends ServiceImpl<PaymentQiyeDAO, PaymentQiye> {

    @Autowired
    private PaymentQiyeDAO paymentQiyeDAO;

    /**
     * 分页查询企业收费记录
     * @param qiye    企业名称
     * @param page     页数
     * @param limit     条数
     * @param time1     开始时间
     * @param time2     结束时间
     * @return
     */
    public IPage<PaymentQiyeVO> selectQiyeID(String qiye, int page, int limit, String time1, String time2){
        return paymentQiyeDAO.selectQiyeID(new Page(page,limit),qiye,time1,time2);
    }

//    public int count(String qiye, String time1, String time2){
//        return paymentQiyeDAO.count(qiye,time1,time2);
//    }
}
